]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Add the parent's box into the allocation
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 21 Oct 2013 21:51:50 +0000 (17:51 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 30 Oct 2013 17:16:44 +0000 (13:16 -0400)
Currently, this is always 0, but this will change when we introduce
a custom layout manager into the story.

js/ui/overviewControls.js

index 8d189975a5cda329a14f6c1f8080eb75817838d7..1ca41787050c7c6171a4f34daddb031ce30f48a2 100644 (file)
@@ -66,9 +66,9 @@ const SlideLayout = new Lang.Class({
         let alignX = (realDirection == SlideDirection.LEFT) ? (availWidth - natWidth) : 0;
 
         let actorBox = new Clutter.ActorBox();
-        actorBox.x1 = alignX;
+        actorBox.x1 = box.x1 + alignX;
         actorBox.x2 = actorBox.x1 + child.x_expand ? availWidth : natWidth;
-        actorBox.y1 = 0;
+        actorBox.y1 = box.y1;
         actorBox.y2 = actorBox.y1 + availHeight;
 
         child.allocate(actorBox, flags);